package square.data;

import java.util.ArrayList;

import pedrosm.data.Data;

/**
 * 
 * @author Pedro Silva Moreira
 */
public class SpriteData extends Data {
	private int animation = 0;
	private int currentFrame = 0;
	private Long lastPaint = null;
	private ArrayList<Object> frames = new ArrayList<Object>();

	// Components Control
	public Object getFrame(int index) {
		return this.getFrames().get(index);
	}

	// Get & Set
	public int getAnimation() {
		return animation;
	}

	public void setAnimation(int animation) {
		this.animation = animation;
	}

	public int getCurrentFrame() {
		return currentFrame;
	}

	public void setCurrentFrame(int currentFrame) {
		this.currentFrame = currentFrame;
	}

	public Long getLastPaint() {
		return lastPaint;
	}

	public void setLastPaint(Long lastPaint) {
		this.lastPaint = lastPaint;
	}

	public ArrayList<Object> getFrames() {
		return frames;
	}

	public void setFrames(ArrayList<Object> frames) {
		this.frames = frames;
	}
}
